Use absl::uint128 for AES random number generator
authorBenjamin Barenblat <bbaren@google.com>
Thu, 14 Apr 2022 17:20:16 +0000 (18:20 +0100)
committerBenjamin Barenblat <bbaren@debian.org>
Thu, 14 Apr 2022 17:20:16 +0000 (18:20 +0100)
commit7e3c14ab14ab9a658ab1305cd45b23bfe9330cc4
tree162dcfc2022b09d6f405c35a358f10c1f3fe0f11
parent77aa76841be256e76b7d79797938152a73c10c50
Use absl::uint128 for AES random number generator

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/b06e719ee985ecd63e0dffbc68499549216f817f

Replace randen’s internal 128-bit integer struct, u64x2, with
absl::uint128. This eliminates some code and improves support for
big-endian platforms.

The author works at Google. Upstream applied this patch as Piper
revision 383475671 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name big-endian-random.diff
absl/random/internal/BUILD.bazel
absl/random/internal/randen_hwaes.cc
absl/random/internal/randen_slow.cc